﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/left.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>MCCMS</title>
		<link href="${ctx}/css/ejdh.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<div class="newslist_tree">
			<div id="PARENT">
				<ul id="newslist_nav">
					<li>
						<a href="#Menu=ChildMenu1" onclick="DoMenu('ChildMenu1')">基本配置信息</a>
						<ul id="ChildMenu1" class="expanded">
							<li>
								<div class="father">
									<a href="${ctx}/chinamobile/orderlistAction.action"
										target="mainFrame">套餐信息管理</a>
								</div>
							</li>
							<li>
								<div class="father">
									<a href="${ctx}/chinamobile/agentpayAction.action"
										target="mainFrame">会员类型</a>
								</div>
							</li>
							<li>
								<div class="father">
									<a href="${ctx}/base/standbyAction.action"
										target="mainFrame">在线充值套餐配置</a>
								</div>
							</li>
						</ul>
					</li>
					<li>
						<a href="#Menu=ChildMenu2" onclick="DoMenu('ChildMenu2')">会员信息管理</a>
						<ul id="ChildMenu2" class="expanded">
							<li>
								<div class="father">
									<a
										href="${ctx}/chinamobile/memberAgentAction!queryMember.action"
										target="mainFrame">会员信息管理</a>
								</div>
							</li>
							<li>
								<div class="father">
									<a
										href="${ctx}/chinamobile/memberAgentAction!queryAgent.action"
										target="mainFrame">代理商信息管理</a>
								</div>
							</li>
						</ul>
					</li>

					<li>
						<a href="#Menu=ChildMenu3" onclick="DoMenu('ChildMenu3')">订单信息管理</a>
						<ul id="ChildMenu3" class="expanded">
							<li>
								<div class="father">
									<a href="${ctx}/chinamobile/saleorderAction.action"
										target="mainFrame">优惠充值订单</a>
								</div>
							</li>
							<li>
								<div class="father">
									<a href="${ctx}/chinamobile/directorderAction.action"
										target="mainFrame">直接充值订单</a>
								</div>
							</li>
							<li>
								<div class="father">
									<a href="${ctx}/chinamobile/transferAction.action"
										target="mainFrame">转账信息管理</a>
								</div>
							</li>
						</ul>
					</li>
					<li>
						<a href="#Menu=ChildMenu4" onclick="DoMenu('ChildMenu4')">项目订制管理</a>
						<ul id="ChildMenu4" class="expanded">
							<li>
								<div class="father">
									<a href="${ctx}/chinamobile/authOrderAction!list.action"
										target="mainFrame">项目订制订单</a>
								</div>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</div>

	</body>

</html>
<script type=text/javascript>
	var LastLeftID = "";
	function menuFix() {
		var obj = $("#newslist_nav li");
		for ( var i = 0; i < obj.length; i++) {
			obj[i].onmouseover = function() {
				this.className += (this.className.length > 0 ? " " : "")
						+ "sfhover";
			}
			obj[i].onMouseDown = function() {
				this.className += (this.className.length > 0 ? " " : "")
						+ "sfhover";
			}
			obj[i].onMouseUp = function() {
				this.className += (this.className.length > 0 ? " " : "")
						+ "sfhover";
			}
			obj[i].onmouseout = function() {
				this.className = this.className.replace(new RegExp(
						"( ?|^)sfhover\\b"), "");
			}
		}
	}
	function DoMenu(emid) {
		var obj = document.getElementById(emid);
		obj.className = (obj.className.toLowerCase() == "expanded" ? "collapsed"
				: "expanded");
		if ((LastLeftID != "") && (emid != LastLeftID)) //关闭上一个Menu
		{
			//document.getElementById(LastLeftID).className = "collapsed";
		}
		LastLeftID = emid;
	}
	function GetMenuID() {
		var MenuID = "";
		var _paramStr = new String(window.location.href);
		var _sharpPos = _paramStr.indexOf("#");

		if (_sharpPos >= 0 && _sharpPos < _paramStr.length - 1) {
			_paramStr = _paramStr.substring(_sharpPos + 1, _paramStr.length);
		} else {
			_paramStr = "";
		}

		if (_paramStr.length > 0) {
			var _paramArr = _paramStr.split("&");
			if (_paramArr.length > 0) {
				var _paramKeyVal = _paramArr[0].split("=");
				if (_paramKeyVal.length > 0) {
					MenuID = _paramKeyVal[1];
				}
			}
		}

		if (MenuID != "") {
			DoMenu(MenuID)
		}
	}
	GetMenuID(); //*这两个function的顺序要注意一下，不然在Firefox里GetMenuID()不起效果
	menuFix();
</script>
